import request from "@/utils/request.js";
import utils from "@/utils/utils.js"
export default {
	editAddress(params) {
		return request({
			url: 'frontuser/address',
			method: 'put',
			data: params
		})
	},
	addAddress(params) {
		return request({
			url: 'frontuser/address',
			method: 'post',
			data: params
		})
	},
	delAddress(params) {
		return request({
			url: 'frontuser/address/' + params.ids,
			method: 'delete',
			data: params
		})
	},
	addressList(params) {
		return request({
			url: 'frontuser/address/list',
			method: 'get',
			data: params
		})
	},
	addressDetail(params) {
		return request({
			url: 'frontuser/address/' + params.id,
			method: 'get',
		})
	},
}
